package com.wanxi.order.Controller;

import com.wanxi.order.entity.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/user/payment")
@RestController
@Api(tags = "支付信息接口")
public class PaymentController {
    @ApiOperation("支付接口")
    @PostMapping("/usePayment")
    public Result UseShippingAddress(@ApiParam("订单id") Integer orderId,
                                     @ApiParam("支付渠道id") Integer paymentChannelid){
        Result result = new Result();
        result.setCode(1);
        return result;
    }
    @ApiOperation("取消支付接口")
    @PostMapping("/cancelPayment")
    public Result CancelPayment(@ApiParam("用户id") Integer userId,
                                @ApiParam("支付渠道id") Integer paymentChannelid,
                                @ApiParam("支付渠道id") String paymentTime){
        Result result = new Result();
        result.setCode(1);
        return result;
    }
}
